describe("UserManagement", function() {

	var u1 = {
		name : 'tina',
		surname : 'ivanova',
		age : 18
	};

	var u2 = {
		name : 'kostas',
		surname : 'kougios',
		age : 25
	};

	var u3 = {
		name : 'lubomir',
		surname : 'ivanov',
		age : 18
	};

	var u4 = {
		name : 'bubche',
		surname : 'pupche',
		age : 38
	};
	var u5 = {
		name : 'seth',
		surname : 'meth',
		age : 178
	};
	var u6 = {
		name : 'mila',
		surname : 'kunis',
		age : 35
	};

	it("user1 younger than user2", function() {
		expect(UserManagement.comparison(u1, u2)).toBe("tina is younger than kostas");
	});

	it("user2 older than user1", function() {
		expect(UserManagement.comparison(u2, u1)).toBe("kostas is older than tina");
	});

	it("user1 same age as user3", function() {
		expect(UserManagement.comparison(u1, u3)).toBe("tina is same age as lubomir");
	});

	it("name surname", function() {
		expect(UserManagement.userName(u1)).toBe("tina ivanova");

	});
	it("user info", function() {
		expect(UserManagement.userInfo(u1)).toBe("tina ivanova, aged 18");

	});
	it("oldEnoughtoMarry positive", function() {
		expect(UserManagement.oldEnoughtoMarry(u2)).toBe(true);

	});
	it("oldEnoughtoMarry negative", function() {
		expect(UserManagement.oldEnoughtoMarry(u1)).toBe(false);
	});
	it("ageCategorisation", function() {
		expect(UserManagement.ageCategorisation(u4)).toBe("35-45");
	});
	it("ageCategorisation", function() {
		expect(UserManagement.ageCategorisation({
			name : 'seth',
			age : 178
		})).toBe("invalid age");

	});
	it("ageCategorisation", function() {
		expect(UserManagement.ageCategorisation(u6)).toBe("35-45");

	});
});
